import fractions


class   C(object):
    def func(self):
        print('hello world!')

class B(C):
        pass
class A(B):
        pass

a=A()
a.func()